import request from '@/utils/request'

// 查询贷款类型列表
export function listLocantype(query) {
  return request({
    url: '/system/locantype/list',
    method: 'get',
    params: query
  })
}

// 查询贷款类型详细
export function getLocantype(id) {
  return request({
    url: '/system/locantype/' + id,
    method: 'get'
  })
}

// 新增贷款类型
export function addLocantype(data) {
  return request({
    url: '/system/locantype',
    method: 'post',
    data: data
  })
}

// 修改贷款类型
export function updateLocantype(data) {
  return request({
    url: '/system/locantype',
    method: 'put',
    data: data
  })
}

// 删除贷款类型
export function delLocantype(id) {
  return request({
    url: '/system/locantype/' + id,
    method: 'delete'
  })
}
